package org.rapla.mobile.android.activity;

import org.rapla.mobile.android.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class EventDetailsActivity extends Activity {

	private OnClickListener listener;
	private Spinner eventtype;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.eventdetails);

		listener = new SubmitListener();

		Button save = (Button) findViewById(R.id.save);
		save.setOnClickListener(listener);

		Button cancel = (Button) findViewById(R.id.cancel);
		cancel.setOnClickListener(listener);

		// event type
		eventtype = (Spinner) findViewById(R.id.eventtype);
		ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
				this, R.array.countries, android.R.layout.simple_spinner_item);
		adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		eventtype.setAdapter(adapter);

	}

	private class SubmitListener implements OnClickListener {

		public void onClick(View v) {

			// intent

		}

	}
}
